package com.zyh.scs.admin.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author hwh
 * @ClassName: 修改密码$
 * @Description: $
 * @Date $
 * @Version 1.0
 */
@Data
@Schema(description = "修改密码dto")
@Accessors(chain = true)
public class UpdatePasswordDTO implements Serializable {

    @Schema(description = "用户id")
    private Long userId;

    @NotBlank(message = "旧密码不能为空")
    @Schema(description = "旧密码")
    private String oldPassword;

    @NotBlank(message = "新密码不能为空")
    @Schema(description = "新密码")
    private String newPassword;
}
